import { Bk_News } from 'src/news/bk_news.entity';
import { Entity, Column, PrimaryGeneratedColumn, OneToMany } from 'typeorm';

@Entity()
export class Bk_News_Category {
    @PrimaryGeneratedColumn()
    id: number;

    @Column({ unique: true })
    category_name: string;

    @OneToMany(() => Bk_News, news => news.category)
    news: Bk_News[]
}